xentop: Dynamically expand some columns
authorMarkus Hauschild <Markus.Hauschild@rz.uni-regensburg.de>
Wed, 29 Oct 2014 11:24:32 +0000 (12:24 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 5 Nov 2014 10:09:29 +0000 (10:09 +0000)
commit1210f81cdf1b846091d8e6042923d68403cc53e2
treed4c2ac6f723f7f482437adeb0d7105ca92b9f912
parent5c8dd034f083dbc0cca2ba375a754978f8e25332
xentop: Dynamically expand some columns

Allow certain xentop columns to automatically expand as the amount
of data reported gets larger.  The columns allowed to auto expand are:

NETTX(k), NETRX(k), VBD_RD, VBD_WR, VBD_RSECT, VBD_WSECT

If the -f option is used to allow full length VM names, those names will
also be aligned based on the longest name in the NAME column.

The default minimum width of all columns remains unchanged.

Signed-off-by: Markus Hauschild <Markus.Hauschild@rz.uni-regensburg.de>
Signed-off-by: Charles Arnold <carnold@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xenstat/xentop/Makefile
tools/xenstat/xentop/xentop.c